// ServerSocket.cpp : implementation file
//

#include "stdafx.h"
#include "Server.h"
#include "ServerSocket.h"
#include "ServerDlg.h"


// ServerSocket

ServerSocket::ServerSocket()
: pDlg(NULL)
{
}

ServerSocket::~ServerSocket()
{
}


// ServerSocket member functions

void ServerSocket::OnAccept(int nErrorCode)
{
	OutputDebugString(_T("[Server socket] OnAccept"));
	OutputDebugString(_T("ooooooooooooooooooooooo"));
	//Accept(((CServerDlg*)pDlg)->m_clientSocketArr[0]);
	((CServerDlg*)pDlg)->OnAccept();
	OutputDebugString(_T("kkkkkkkkkkkkkkkkkkkkkkkkkkkk"));
	CSocket::OnAccept(nErrorCode);
}

void ServerSocket::OnConnect(int nErrorCode)
{
	// TODO: Add your specialized code here and/or call the base class

	CSocket::OnConnect(nErrorCode);
}
